<div style="font-size:16px;font-weight:bold;padding:10px;margin:10px 0"><a href="news_admin.html">QUẢN TRỊ TIN TỨC</a> [ <a href="{$url_add}">Thêm tin mới</a> ]</div>
  
<table cellSpacing="1" cellPadding="5" width="100%" border="0" >
    <tr align="left">
            <td width="7%" align="right" bgcolor="#FFFFFF" ><strong>T&igrave;m tin</strong></td>
      <td width="20%" bgcolor="#FFFFFF" ><input name="searchtext" style="height:20px " type="text" id="searchtext" value="{$keyword}" size="" maxlength="255" ></td>
            <td width="7%" align="right" bgcolor="#FFFFFF" ><strong>Danh m&#7909;c</strong></td>
            <td width="66%" bgcolor="#FFFFFF" >
            <select name="news_catid" id="news_catid" style="width: " >
              {$news_cat_option}
            </select>                  </td>
  </tr>
        <tr align="left">
            <td align="right" bgcolor="#FFFFFF" ><strong>B&#7855;t &#273;&#7847;u</strong></td>
          <td bgcolor="#FFFFFF"><input type="text" style="height:20px " value="{$date_begin}" name="date_begin" size="" id="date_begin" maxlength="10" >
          <span class="smalldetailnew">&nbsp;dd-mm-yyyy</span></td>
            <td align="right" bgcolor="#FFFFFF"><strong>K&#7871;t th&uacute;c</strong></td>
            <td bgcolor="#FFFFFF"><input type="text" value="{$date_end}" style="height:20px " name="date_end" size="" id="date_end" maxlength="10" />
          <span class="smalldetailnew">&nbsp;dd-mm-yyyy</span></td>
        </tr>
        <tr align="left">
            <td align="right" bgcolor="#FFFFFF" ><strong>Tr&#7841;ng th&aacute;i</strong></td>
          <td bgcolor="#FFFFFF">
            <select name="status" id="status" style="width: " >
              {$status_option}
            </select></td>
            <td align="right" bgcolor="#FFFFFF"><strong>Lo&#7841;i tin</strong></td>
            <td bgcolor="#FFFFFF">
            <select name="hot" id="hot" style="width: " >
              {$hot_option}
          </select></td>
        </tr>
        <tr align="left">
            <td align="left" bgcolor="#FFFFFF" ></td>
          <td bgcolor="#FFFFFF"><input name="ListNews" type="submit" value="T&igrave;m ki&#7871;m" class="button" /></td>
            <td bgcolor="#FFFFFF">&nbsp;</td>
            <td bgcolor="#FFFFFF">&nbsp;</td>
        </tr>
        <tr align="left">
            <td colspan="4" align="left" bgcolor="#FFFFFF">{$msg}</td>
        </tr>
</table>
      
{if $items}
<div class="product-list-paging">
{$pagging}
</div>
    <table width="100%" border="0" cellpadding="5" cellspacing="1" style="border:1px solid #CCCCCC;margin-top:10px" bgcolor="#CCCCCC">
      <tr valign="top"  >
        <td width="63" align="center" bgcolor="#FFFFFF"><strong>ID</strong></td>
        <td width="152" align="left" bgcolor="#FFFFFF"><strong>Danh mục</strong></td>
        <td width="152" align="center" bgcolor="#FFFFFF"><strong>Ảnh</strong></td>
        <td width="332" bgcolor="#FFFFFF"><strong>Tiêu đề</strong></td>
        <td width="352" bgcolor="#FFFFFF"><span class="news_content"><strong>Mô tả vắn tắt</strong></span></td>
        <td width="113" align="center" bgcolor="#FFFFFF"><strong>Trạng thái</strong></td>
        <td width="117" bgcolor="#FFFFFF"><strong>Thao tác</strong></td>
      </tr>
      
      {foreach from=$items item=item}
      <tr valign="top"  >
        <td align="center" bgcolor="#FFFFFF">{$item.id}</td>
        <td width="152" align="left" bgcolor="#FFFFFF">{$item.cat}</td>
        <td width="152" align="center" bgcolor="#FFFFFF"><a href="{$item.url}"><img src="{$item.image}" width="150" style="padding:2px;border:1px solid #ccc" border="0" title="{$item.image_title}" alt="{$item.image_title}"></a></td>
        <td bgcolor="#FFFFFF"><a href="{$item.url}">{$item.title}</a></td>
        <td bgcolor="#FFFFFF">{$item.brief}</td>
        <td align="center" bgcolor="#FFFFFF">{if $item.status}<font color="#0000FF">Hiển thị</font>{else}<font color="red">Ẩn</font>{/if}</td>
        <td nowrap="nowrap" bgcolor="#FFFFFF">{$item.admin_link}</td>
      </tr>
      {/foreach}
    </table>	
<div class="product-list-paging">
{$pagging}
</div>
{else}
<center>Chưa có tin nào!</center>
{/if}

<script>
{literal}
jQuery(document).ready(function(){								
	jQuery("#date_begin").datepicker();
	jQuery("#date_end").datepicker();
});
{/literal}
</script>